home *** CD-ROM | disk | FTP | other *** search
- In a message of 07 Jan 96 Magnus Holmgren wrote to Adam@beachyhd.demon.co.:
-
- Abd>> In a program that I'm writing I have a GadTools LISTVIEW gadget. Now
- Abd>> my program -- at any time -- needs to be able to tell which line
- Abd>> number (0 to whatever) is being displayed at the very top of the
- Abd>> listview.
-
- MH> Use the following code:
-
- MH> if( GadToolsBase->lib_Version < 39 )
- MH> {
- MH> top = *( ( UWORD * ) ( ( ( UBYTE * ) listview ) + sizeof( struct
- MH> Gadget ) + 4 ) );
- MH> }
-
- This looks like exactly what I'm after, but on my V39 machine it always printed
- the value '7', not the list top. Is this just because I'm using a V39 machine?
- (ie, will this still work on V36 - V38?).. I'll have to see if I can find
- someone with an A600 so I can test it. :)
-
- .\dam. [Team AMIGA] //\ ad32@brighton.ac.uk \\/
-
-